# 导包
import  requests
# 创建接口类
class Add_Cart_API:
    # 初始化操作
    def __init__(self):
        self.url_add_cart = "http://192.168.1.38:8080/wx/cart/add"
    def add_cart(self,test_data,token):
        return requests.post(url=self.url_add_cart,
                             json=test_data,
                             headers={"X-Litemall-Token":token})
